<?php

class Application_Model_Newsletter {

    public function cadastrar(Application_Model_DAO_Newsletter $object) {

        $email = $object->getEmailNewsletter();
        if (!empty($email)) {
            $db = new Application_Model_DbTable_Newsletter();
            $object = $db->cadastrar($object);

            if ($object->getIdNewsletter()) {
                return true;
            }
        }
    }

}

